package callgraph.dto;


public class CallIdCounter {

    private int currentCallId;

    public static CallIdCounter newInstance() {
        CallIdCounter callIdCounter = new CallIdCounter();
        callIdCounter.setCurrentCallId(0);
        return callIdCounter;
    }

    public int addAndGet() {
        return ++currentCallId;
    }

    public int getCurrentCallId() {
        return currentCallId;
    }

    public void setCurrentCallId(int currentCallId) {
        this.currentCallId = currentCallId;
    }
}
